import axios from 'axios'

const request = axios.create({
  baseURL: '/',
  headers: {
    'Content-Type': 'application/json;charset=UTF-8',
    'Access-Control-Allow-Origin': '*'
  },
  timeout: 30000
})
// 请求拦截器
request.interceptors.request.use((config) => {
  return config

})

// 响应拦截器
request.interceptors.response.use((config) => {

  return config.data

}, error => {
  // return Message.error(error)
})



export default request
